﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SChallengeCopyResult extends IMessageBase
    {
        public var playerId:int;
        public var floor:int;
        public var level:int;
        public var diff:int;
        public var isPass:Boolean;
        public var residuetimes:int;
        public const _type:int = 5007;
        public static var _regist:SChallengeCopyResult = new SChallengeCopyResult(true);

        public function SChallengeCopyResult(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SChallengeCopyResult();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.playerId);
            param1.writeInt(this.floor);
            param1.writeInt(this.level);
            param1.writeInt(this.diff);
            param1.writeBool(this.isPass);
            param1.writeInt(this.residuetimes);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.playerId = param1.readInt();
            this.floor = param1.readInt();
            this.level = param1.readInt();
            this.diff = param1.readInt();
            this.isPass = param1.readBool();
            this.residuetimes = param1.readInt();
            return;
        }// end function

    }
}
